import Vue from 'vue'
import Router from 'vue-router'
import SellHome from '../components/SellHome'
import AboutMe from '../components/AboutMe'
import SellType from '../components/SellType'
import TypeContent from '../components/TypeContent'
import SellSearch from '../components/SellSearch'
import PageComment from '../components/PageComment'
import MoGuJie from '../components/MoGuJie'
import ShopCar from '../components/ShopCar'







Vue.use(Router)

export default new Router({
	linkActiveClass: "active",
	linkExactActiveClass: "exact-active",
	mode: "history",
	routes: [
		{ path: "/", redirect: "/mogujie" },
		{ path: "/mogujie", component: MoGuJie ,children:[
			{ path: "/", redirect: "home" },
			{ path: 'home', name: 'SellHome', component: SellHome },
			{ path: 'aboutme', name: 'AboutMe', component: AboutMe },
			{ path: 'type', name: 'SellType', component: SellType},
			{ path: 'car', name: 'ShopCar', component: ShopCar},

		]},
		{ path: '/content/:id', name: 'TypeContent', component: TypeContent },
		{ path: '/search', name: 'SellSearch', component: SellSearch },
		{ path: '/comment/:comment', name: 'PageComment', component: PageComment }
	]
})
